package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "api_meta_name")
public class ApiMetaName {
    @Id
    @Column(name = "api_id")
    private Long apiId;

    /**
     * 接口code
     */
    @Column(name = "api_code")
    private String apiCode;

    /**
     * 接口名称
     */
    @Column(name = "api_name")
    private String apiName;

    /**
     * 接口分类
     */
    @Column(name = "api_category")
    private String apiCategory;

    /**
     * 备注
     */
    @Column(name = "api_comment")
    private String apiComment;

    /**
     * 接口描述
     */
    @Column(name = "api_desc")
    private String apiDesc;

    public ApiMetaName(Long apiId, String apiCode, String apiName, String apiCategory, String apiComment) {
        this.apiId = apiId;
        this.apiCode = apiCode;
        this.apiName = apiName;
        this.apiCategory = apiCategory;
        this.apiComment = apiComment;
    }

    public ApiMetaName(Long apiId, String apiCode, String apiName, String apiCategory, String apiComment, String apiDesc) {
        this.apiId = apiId;
        this.apiCode = apiCode;
        this.apiName = apiName;
        this.apiCategory = apiCategory;
        this.apiComment = apiComment;
        this.apiDesc = apiDesc;
    }

    public ApiMetaName() {
        super();
    }

    /**
     * @return api_id
     */
    public Long getApiId() {
        return apiId;
    }

    /**
     * @param apiId
     */
    public void setApiId(Long apiId) {
        this.apiId = apiId;
    }

    /**
     * 获取接口code
     *
     * @return api_code - 接口code
     */
    public String getApiCode() {
        return apiCode;
    }

    /**
     * 设置接口code
     *
     * @param apiCode 接口code
     */
    public void setApiCode(String apiCode) {
        this.apiCode = apiCode;
    }

    /**
     * 获取接口名称
     *
     * @return api_name - 接口名称
     */
    public String getApiName() {
        return apiName;
    }

    /**
     * 设置接口名称
     *
     * @param apiName 接口名称
     */
    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    /**
     * 获取接口分类
     *
     * @return api_category - 接口分类
     */
    public String getApiCategory() {
        return apiCategory;
    }

    /**
     * 设置接口分类
     *
     * @param apiCategory 接口分类
     */
    public void setApiCategory(String apiCategory) {
        this.apiCategory = apiCategory;
    }

    /**
     * 获取备注
     *
     * @return api_comment - 备注
     */
    public String getApiComment() {
        return apiComment;
    }

    /**
     * 设置备注
     *
     * @param apiComment 备注
     */
    public void setApiComment(String apiComment) {
        this.apiComment = apiComment;
    }

    /**
     * 获取接口描述
     *
     * @return api_desc - 接口描述
     */
    public String getApiDesc() {
        return apiDesc;
    }

    /**
     * 设置接口描述
     *
     * @param apiDesc 接口描述
     */
    public void setApiDesc(String apiDesc) {
        this.apiDesc = apiDesc;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", apiId=").append(apiId);
        sb.append(", apiCode=").append(apiCode);
        sb.append(", apiName=").append(apiName);
        sb.append(", apiCategory=").append(apiCategory);
        sb.append(", apiComment=").append(apiComment);
        sb.append(", apiDesc=").append(apiDesc);
        sb.append("]");
        return sb.toString();
    }
}